package HomeWork.ooday003.Animals;

public class AnimalDemo {
    public static void main(String[] args) {
        Dog[] dogs=new Dog[3];
        dogs[0]=new Dog(4,"Kids","blue");
        dogs[1]=new Dog(3,"Iris","red");
        dogs[2]=new Dog(2,"Unique","cyan");
        for (int i = 0; i < dogs.length; i++) {
            System.out.println(dogs[i].name);
            dogs[i].eat();
        }
    }
}
